<template>
  <div class="phone-container">
      <div style="color:red" v-if="msg">{{msg}}</div>
      <phone-detail :id="id"></phone-detail>
  </div>

</template>

<script>
import PhoneDetail from '@/components/phone-detail.vue'
export default {
  name: 'Detail',
  components: {
    PhoneDetail
  },
  props: {},
  data () {
    return {

    }
  },
  mounted () {
  },
  computed: {},
  watch: {},
  created () {
    this.id = this.$route.query.id
    this.msg = this.$route.query.msg

    if (this.msg == 1) {
      this.msg = '该设备已经读取过'
    } else {
      this.msg = ''
    }
  },

  methods: {

  }
}
</script>

<style  lang="less">
  .phone-container{
    width:900px;
    margin: auto;
    margin-top: 100px;
  }
</style>
